package com.mall.autoconfig;


import com.mall.autoconfig.properties.OssProperties;
import com.mall.autoconfig.temple.OssTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 *
 * @Date 2023-02-24 16:46
 * @Desc 阿里云自动装配类
 */
@EnableConfigurationProperties({
        OssProperties.class,
})
public class TanhuaAutoConfiguration {

    @Bean
    public OssTemplate ossTemplate(OssProperties ossProperties) {
        return new OssTemplate(ossProperties);
    }

}
